<template>
  <div>
  </div>
</template>

<script>
import HDWX from 'hdc/vue-ydui-hdutils/components/hdWx';
export default {
  name: 'boutiquepay',
  data() {
    return {
      'orderCode': this.$route.query.orderCode
    }
  },
  mounted() {
    // console.log(HDWX().callpay());
    this.load();
  },
  methods: {
    load() {
      let that = this;
      console.log('订单号', this.orderCode);
      HDWX().callpay({
        orderid: this.orderCode,
        success: function() {
          alert('ok支付成功了');
          alert(that.orderCode);
          that.$router.push({path: 'order_success_line', query: {'orderCode': that.orderCode}});
        }
      });
    }
  }
}
</script>

<style scoped>
body {
	height: 100%;
	overflow: hidden;
}

.mui-bar {
	-webkit-box-shadow: none;
	box-shadow: none;
}

#done.mui-disabled {
	color: gray;
}

.hd-header {
	background-color: #099fde;
}

.over-btn {
	line-height: 40px;
	text-align: center;
}

.hd-header .mui-title {
	color: white;
}

.hd-white {
	color: white;
}
</style>